<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="/WEB-INF/facelets/template.xhtml">
        
        <ui:param name="title" value="JadeTalk Edit Profile" />
        
        <ui:define name="content">
            <h:form>
                <fieldset class="loginFieldset">
                    <legend align="top">Edit profile</legend><!-- INGENTING ÄR SOM DET SKA HÄR -->
                    <h:panelGrid columns="2" cellpadding="3">
                        Username: <h:inputText required="true" value="#{loginControllerBean.userSessionBean.user.username}" label="Username" />
                        Password: <h:inputSecret required="true" value="#{loginControllerBean.userSessionBean.user.password}" label="Password" />
                        Email address: <h:inputText required="true" value="#{loginControllerBean.userSessionBean.user.email}" label="Email address" />
                        &nbsp; <h:commandButton action="#{editUserControllerBean}" value="Edit profile" style="float: right;"/>
                    </h:panelGrid>
                </fieldset>
            </h:form>
            #{loginControllerBean.userSessionBean.user}
        </ui:define>
        
    </ui:composition>
</html>

